package system;

import java.sql.Date;
import java.util.ArrayList;

public class SaleOperation {
	
	public SaleOperation(){}
	public SaleOperation(String sOId, String sOName, Date startDate,
			Date endDate, String operationScope, ArrayList<Product> productInSale) {
		SOId = sOId;
		SOName = sOName;
		StartDate = startDate;
		EndDate = endDate;
		OperationScope = operationScope;
		ProductsInSale = productInSale;
	}

	private String SOId;
	private String SOName;
	private Date StartDate;
	private Date EndDate;
	private String OperationScope;
	private ArrayList<Product> ProductsInSale;
	
	public String getSOId() {
		return SOId;
	}
	public void setSOId(String sOId) {
		SOId = sOId;
	}
	public String getSOName() {
		return SOName;
	}
	public void setSOName(String sOName) {
		SOName = sOName;
	}
	public Date getStartDate() {
		return StartDate;
	}
	public void setStartDate(Date startDate) {
		this.StartDate = startDate;
	}
	public Date getEndDate() {
		return EndDate;
	}
	public void setEndDate(Date endDate) {
		this.EndDate = endDate;
	}
	public String getOperationScope() {
		return OperationScope;
	}
	public void setOperationScope(String operationScope) {
		OperationScope = operationScope;
	}
	public ArrayList<Product> getProductInSale() {
		return ProductsInSale;
	}
	public void setProductInSale(ArrayList<Product> productsInSale) {
		ProductsInSale = productsInSale;
	}
	public void addProductToSale(Product prdct){
		ProductsInSale.add(prdct);
	}
	public void removeProductFromSale(Product prdct){
		ProductsInSale.remove(prdct);
	}
	/*@Override
	public String toString() {
		return "SaleOperation [SOId=" + SOId + ", SOName=" + SOName
				+ ", StartDate=" + StartDate + ", EndDate=" + EndDate
				+ ", OperationScope=" + OperationScope + ", ProductsInSale="
				+ ProductsInSale + "]";
	}*/
}
